<form action="/login" method="post" class="col-xs-4" role="form">
  <div class="form-group ">
    <label >用户名</label>
    <input type="text" class="form-control" name="name" placeholder="用户名">
  </div>
  <div class="form-group ">
    <label >密码</label>
    <input type="password" class="form-control" name="pwd" placeholder="密码">
  </div>
  <div>{{.emsg}}</div>
  <button type="submit" class="btn btn-default">登录</button>
</form>